package com.sbtr.business.trainingtask.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sbtr.business.trainingtask.entity.TrainingInfo;
import com.sbtr.business.trainingtask.entity.TrainingStatusDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 训练任务表 Mapper 接口
 * </p>
 *
 * @author wangwh15

 */
public interface TrainingInfoMapper extends BaseMapper<TrainingInfo> {


    @Select("select status,project_id as 'projectId' from training_info")
    List<TrainingStatusDto> getTrainingStatusList();

    @Select("select status,project_id from training_info where id in (${ids})")
    List<TrainingStatusDto> getTrainingStatusLists(@Param("ids") String ids);
}
